What you'll need.

  1. A computer. It doesn't have to be too fast, as MP3 streaming isn't CPU-intensive: any kind of Power Mac (or iMac) or Pentium PC should suffice. It probably needs at least 32MB of RAM. (The app itself will use about 5MB on Mac OS.)
  2. A high speed TCP/IP net connection. Anything better than a regular modem: DSL or cable-modem will do. Or you can use Ethernet to stream to your local area network.
  3. A Java 1.1+ runtime for your OS (such as Sun's JRE or Apple's MRJ.)
  4. A collection of MP3-format audio files. Make sure they are not variable-bit-rate encoded, they all have the same bit-rate, and that the bit-rate is comfortably less than the maximum upload speed of your Internet connection.

E-Z setup for the impatient.

If you want to get started right away, just do the following. But note that you probably don't want to really serve any streams to other people without doing a bit more setup, as described in the next section.

  1. Download the binary distribution (presumably you've already done this if you're reading this file!)
  2. Put the MP3 files you want to stream into the "MP3s" folder. It's fine to use subfolders. Also, you can add files later on even if the server is already running.
  3. Launch RadioStation:
    • On Mac OS, simply double-click the RadioStation application icon.
    • On other platforms, you may be able to simply double-click the "RadioStation.jar" file, if the version of Java installed understands how to launch Jar files. (JDK 1.2 and later support this.)
    • Otherwise, you'll to use a command-line shell to go to the RadioStation directory and enter a command like "jre -cp Radio.jar com.apple.jens.radio.Radio".
  4. The text console will display status information, including a message saying that your channel is now running.
  5. That's it! The server will run forever, waiting for incoming connections, until you quit it. (On Mac OS, use the Quit menu command. On Windows or Unix, pressing Control-C from the command line should do it.)
  6. To connect, launch a streaming-capable MP3 player on the same or another machine and connect to port 8000 on the machine running the server (you'd type in the IP address of the server followed by ":8000".)

All is fine and dandy ... except that you haven't configured any of the info about your station, like its name and genre. These happen to default to "Polkacide!" and "Polka" respectively, so you might want to edit them. Also, you might want to stream more than one channel, or put the MP3 files somewhere else, or generate a web page with a playlist. Read on.

How to configure stations.

The station(s) are configured by means of text files in the "Stations" folder: one per station. The name of the file is ignored, but for your own sake you'll want to give it a name that matches the station's name. Each file is a standard Java properties file consisting of lines of the form "name=value", where name is the name of a property and value is its value. (Lines starting with "#" are ignored.)

If you have multiple stations, make a copy of "ExampleStation" for each extra station you want, then rename them.

Then open each station file in a text editor (like SimpleText or notepad or emacs) and edit a few properties. There is full documentation on all the different properties, but the basic properties you need to set are:

After any changes to station files, you'll need to restart the server. If there are problems with a station file (like an incorrect directory path) you'll get an error message and the server will quit. Fix the station file and start the server again.